//
//  ViewFactory.h
//  
//
//  Created by nenad on 18/04/09.
//  Copyright 2009 FROM SCRATCH. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ViewFactory : NSObject {
@private
	NSMutableDictionary * viewTemplateStore;
	NSMutableDictionary * viewHeightStore;
}
+ (void)loadNib:(NSString*)aNibName;
+ (UITableViewCell*)cellOfKind:(NSString*)theCellKind;
+ (UITableViewCell*)cellOfKind:(NSString*)theCellKind forTable:(UITableView*)aTableView;
+ (CGFloat)heightForCellOfKind:(NSString*)theCellKind;

+ (UIView*)viewFromNib:(NSString*)aNibName;
+ (UIView*)viewFromNib:(NSString*)aNibName withTag:(NSInteger)tag;
+ (UIView*)viewFromNib:(NSString*)aNibName ofClass:(Class)aClass;

@end

